package com.hmys.api.service.impl;

import com.hmys.api.mapper.WebLogMapper;
import com.hmys.api.model.WebLog;
import com.hmys.api.service.WebLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * Created by chen365 on 2018/03/14.
 */
@Service
public class WebLogServiceImpl implements WebLogService {
    @Autowired
    private WebLogMapper webLogMapper;

    @Override
    public void save(WebLog record) {
        record.setCreateTime(new Date());
        webLogMapper.insertSelective(record);
    }
}
